package com.nulstudio.sppm.mapper;

import com.nulstudio.sppm.domain.vo.UserManagementVo;
import com.nulstudio.sppm.entity.NulUserDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

import java.util.List;

public interface UserManagementMapper {
    @NonNull
    List<UserManagementVo> fetchAll(@Param("name") @NonNull String name);

    int update(@Param("userDetail") @NonNull NulUserDetail userDetail);

    int delete(@Param("id") int id);
}
